WooCommerce\Square\Handlers\Product D

Total Complexity 217
Dependencies 19
Dependents 17
Total lines 1,656
Lines of code 777
Logical lines of code 426
Comment lines 539
Methods 48
Properties 0

Methods 48

Method Rating Maintainability Complexity Lines of code
update_from_square()
B
36 20 77
update_image_from_square()
B
40 18 55
update_stock_from_square()
A
46 14 35
get_square_meta()
A
42 12 50
update_products_stock_from_square()
A
46 10 36
convert_to_catalog_object()
A
47 9 38
extract_catalog_item_variation_data()
A
48 7 32
update_square_meta()
S
55 7 21
extract_catalog_item_data()
S
49 6 31
set_synced_with_square()
S
56 7 16
update_price_money()
S
58 6 16
has_multiple_variation_attributes()
S
58 6 15
has_sku()
S
60 6 12
get_square_item_variation_id()
S
61 5 11
get_square_item_id()
S
61 5 11
get_products_synced_status()
S
51 4 25
get_inventory_change_adjustment_type()
S
52 4 24
import_remote_meta()
S
59 3 15
is_gift_card()
S
64 4 9
is_synced_with_square()
S
62 4 10
clear_square_meta()
S
54 2 21
get_inventory_change_physical_count_type()
S
57 2 16
update_product()
S
64 3 9
set_square_version()
S
67 3 7
get_catalog_item_thumbnail_id()
S
66 3 8
can_sync_with_square()
S
67 3 7
set_square_image_id()
S
67 3 7
get_square_image_id()
S
64 3 10
get_square_variation_version()
S
67 3 7
set_square_variation_version()
S
67 3 7
get_square_version()
S
67 3 7
set_square_item_variation_id()
S
67 3 7
get_product_by_square_id()
S
68 3 7
update_variation()
S
65 3 8
set_square_item_id()
S
67 3 7
get_square_meta_single()
S
63 2 11
is_mapped()
S
73 2 4
get_product_id_by_square_id()
S
61 1 15
get_product_id_by_square_variation_id()
S
61 1 15
get_catalog_item_description()
S
66 2 8
get_product_by_square_variation_id()
S
69 2 7
init_taxonomies()
S
61 1 14
get_parent_product_id_by_variation_id()
S
63 1 14
get_products_not_synced_with_square()
S
79 1 3
price_to_money()
S
79 1 3
get_products_synced_with_square()
S
79 1 3
unset_synced_with_square()
S
78 1 3
get_product_edit_link()
S
77 1 3